package scsc.web.system.data;

import scsc.pub.data.TaskItemInstance;
import scsc.pub.tools.StringUtil;

public class TaskItemInstanceData extends TaskItemInstance {
	
	private static final long serialVersionUID = 1L;

	public TaskItemInstanceData() {
		init();
	}

	public TaskItemInstanceData(String name, String url,
			String needDo) {
		this.setName(StringUtil.trim(name));
		this.setUrl(StringUtil.trim(url));
		this.setNeedDo(StringUtil.trim(needDo));
	}
	
	public TaskItemInstanceData(Long id, String name, String url,
			String needDo,String isdone) {
		this.setId(id);
		this.setName(StringUtil.trim(name));
		this.setUrl(StringUtil.trim(url));
		this.setNeedDo(StringUtil.trim(needDo));
		this.setIsdone(StringUtil.trim(isdone));
	}

	public void reset() {
		init();
	}

	public void init() {
		this.setName("");
		this.setUrl("");
		this.setNeedDo("");
	}

}
